package com.weitu.environmental.abnormalDischarge.service.impl;

import com.weitu.environmental.abnormalDischarge.entity.AbnormalDischargeReport;
import com.weitu.environmental.abnormalDischarge.mapper.AbnormalDischargeReportMapper;
import com.weitu.environmental.abnormalDischarge.service.AbnormalDischargeReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-05-03
 */
@Service
public class AbnormalDischargeReportServiceImpl implements AbnormalDischargeReportService {

    private final AbnormalDischargeReportMapper abnormalDischargeReportMapper;

    @Autowired
    public AbnormalDischargeReportServiceImpl(AbnormalDischargeReportMapper abnormalDischargeReportMapper) {
        this.abnormalDischargeReportMapper = abnormalDischargeReportMapper;
    }

    @Override
    public List<AbnormalDischargeReport> findByParam(Map paramMap) {
        return abnormalDischargeReportMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return abnormalDischargeReportMapper.findByParamCount(paramMap);
    }

    @Override
    public AbnormalDischargeReport findById(String id) {
        return abnormalDischargeReportMapper.findById(id);
    }

    @Override
    public Integer add(Map paramMap) {
        return abnormalDischargeReportMapper.add(paramMap);
    }

    @Override
    public Integer updateById(Map paramMap) {
        return abnormalDischargeReportMapper.updateById(paramMap);
    }
}
